/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef PCA9545_H
#define PCA9545_H

#include "interface/i_chip.h"
#include "interface/i_pca9545.h"
#include "internal/bus/bus_base/bus.h"
#include "internal/chip/chip_base/chip.h"
#include "internal/manager.h"
#include <mc/engine.h>

namespace dev {

class pca9545_object : public mc::engine::object<pca9545_object> {
public:
    MC_OBJECT(pca9545_object, "Pca9545", "${object_name}", (Interface_Pca9545)(Interface_Chip))

    pca9545_object()  = default;
    ~pca9545_object() = default;
    bool init(mc::mutable_dict& csr_object, const mc::dict& connector);

    Interface_Pca9545 m_interface_pca9545;
    Interface_Chip    m_interface_chip;
};

} // namespace dev

#endif // PCA9545_H